/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-05-11 15:48:13
 * @LastEditors: voanit
 * @LastEditTime: 2022-05-12 09:53:14
 */
export default function books(list = ['西游记', '水浒传'], action) {
  console.log(action, 777)
  switch (action.type) {
    case 'add':
      return [...list, 'add']
    default:
      return list
  }
}
